.class Lrexsee/location/RexseeMapAbc$3;
.super Ljava/lang/Thread;
.source "RexseeMapAbc.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lrexsee/location/RexseeMapAbc;->requestRoute(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Z
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lrexsee/location/RexseeMapAbc;

.field private final synthetic val$fromLatitude:Ljava/lang/String;

.field private final synthetic val$fromLongitude:Ljava/lang/String;

.field private final synthetic val$id:Ljava/lang/String;

.field private final synthetic val$mode:Ljava/lang/String;

.field private final synthetic val$toLatitude:Ljava/lang/String;

.field private final synthetic val$toLongitude:Ljava/lang/String;


# direct methods
.method constructor <init>(Lrexsee/location/RexseeMapAbc;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lrexsee/location/RexseeMapAbc$3;->this$0:Lrexsee/location/RexseeMapAbc;

    iput-object p2, p0, Lrexsee/location/RexseeMapAbc$3;->val$fromLatitude:Ljava/lang/String;

    iput-object p3, p0, Lrexsee/location/RexseeMapAbc$3;->val$fromLongitude:Ljava/lang/String;

    iput-object p4, p0, Lrexsee/location/RexseeMapAbc$3;->val$toLatitude:Ljava/lang/String;

    iput-object p5, p0, Lrexsee/location/RexseeMapAbc$3;->val$toLongitude:Ljava/lang/String;

    iput-object p6, p0, Lrexsee/location/RexseeMapAbc$3;->val$mode:Ljava/lang/String;

    iput-object p7, p0, Lrexsee/location/RexseeMapAbc$3;->val$id:Ljava/lang/String;

    .line 504
    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 10

    .prologue
    .line 508
    :try_start_0
    new-instance v1, Lcom/mapabc/mapapi/GeoPoint;

    iget-object v5, p0, Lrexsee/location/RexseeMapAbc$3;->this$0:Lrexsee/location/RexseeMapAbc;

    iget-object v6, p0, Lrexsee/location/RexseeMapAbc$3;->val$fromLatitude:Ljava/lang/String;

    # invokes: Lrexsee/location/RexseeMapAbc;->_strToLatitude(Ljava/lang/String;)I
    invoke-static {v5, v6}, Lrexsee/location/RexseeMapAbc;->access$5(Lrexsee/location/RexseeMapAbc;Ljava/lang/String;)I

    move-result v5

    iget-object v6, p0, Lrexsee/location/RexseeMapAbc$3;->this$0:Lrexsee/location/RexseeMapAbc;

    iget-object v7, p0, Lrexsee/location/RexseeMapAbc$3;->val$fromLongitude:Ljava/lang/String;

    # invokes: Lrexsee/location/RexseeMapAbc;->_strToLongitude(Ljava/lang/String;)I
    invoke-static {v6, v7}, Lrexsee/location/RexseeMapAbc;->access$6(Lrexsee/location/RexseeMapAbc;Ljava/lang/String;)I

    move-result v6

    invoke-direct {v1, v5, v6}, Lcom/mapabc/mapapi/GeoPoint;-><init>(II)V

    .line 509
    .local v1, "from":Lcom/mapabc/mapapi/GeoPoint;
    new-instance v4, Lcom/mapabc/mapapi/GeoPoint;

    iget-object v5, p0, Lrexsee/location/RexseeMapAbc$3;->this$0:Lrexsee/location/RexseeMapAbc;

    iget-object v6, p0, Lrexsee/location/RexseeMapAbc$3;->val$toLatitude:Ljava/lang/String;

    # invokes: Lrexsee/location/RexseeMapAbc;->_strToLatitude(Ljava/lang/String;)I
    invoke-static {v5, v6}, Lrexsee/location/RexseeMapAbc;->access$5(Lrexsee/location/RexseeMapAbc;Ljava/lang/String;)I

    move-result v5

    iget-object v6, p0, Lrexsee/location/RexseeMapAbc$3;->this$0:Lrexsee/location/RexseeMapAbc;

    iget-object v7, p0, Lrexsee/location/RexseeMapAbc$3;->val$toLongitude:Ljava/lang/String;

    # invokes: Lrexsee/location/RexseeMapAbc;->_strToLongitude(Ljava/lang/String;)I
    invoke-static {v6, v7}, Lrexsee/location/RexseeMapAbc;->access$6(Lrexsee/location/RexseeMapAbc;Ljava/lang/String;)I

    move-result v6

    invoke-direct {v4, v5, v6}, Lcom/mapabc/mapapi/GeoPoint;-><init>(II)V

    .line 510
    .local v4, "to":Lcom/mapabc/mapapi/GeoPoint;
    new-instance v2, Lcom/mapabc/mapapi/Route$FromAndTo;

    invoke-direct {v2, v1, v4}, Lcom/mapabc/mapapi/Route$FromAndTo;-><init>(Lcom/mapabc/mapapi/GeoPoint;Lcom/mapabc/mapapi/GeoPoint;)V

    .line 511
    .local v2, "fromAndTo":Lcom/mapabc/mapapi/Route$FromAndTo;
    iget-object v5, p0, Lrexsee/location/RexseeMapAbc$3;->this$0:Lrexsee/location/RexseeMapAbc;

    # getter for: Lrexsee/location/RexseeMapAbc;->mContext:Landroid/content/Context;
    invoke-static {v5}, Lrexsee/location/RexseeMapAbc;->access$1(Lrexsee/location/RexseeMapAbc;)Landroid/content/Context;

    move-result-object v5

    check-cast v5, Lcom/mapabc/mapapi/MapActivity;

    iget-object v6, p0, Lrexsee/location/RexseeMapAbc$3;->val$mode:Ljava/lang/String;

    # invokes: Lrexsee/location/RexseeMapAbc;->_getRouteMode(Ljava/lang/String;)I
    invoke-static {v6}, Lrexsee/location/RexseeMapAbc;->access$7(Ljava/lang/String;)I

    move-result v6

    invoke-static {v5, v2, v6}, Lcom/mapabc/mapapi/Route;->calculateRoute(Lcom/mapabc/mapapi/MapActivity;Lcom/mapabc/mapapi/Route$FromAndTo;I)Ljava/util/List;

    move-result-object v3

    .line 512
    .local v3, "routes":Ljava/util/List;, "Ljava/util/List<Lcom/mapabc/mapapi/Route;>;"
    if-nez v3, :cond_0

    .line 518
    .end local v1    # "from":Lcom/mapabc/mapapi/GeoPoint;
    .end local v2    # "fromAndTo":Lcom/mapabc/mapapi/Route$FromAndTo;
    .end local v3    # "routes":Ljava/util/List;, "Ljava/util/List<Lcom/mapabc/mapapi/Route;>;"
    .end local v4    # "to":Lcom/mapabc/mapapi/GeoPoint;
    :goto_0
    return-void

    .line 513
    .restart local v1    # "from":Lcom/mapabc/mapapi/GeoPoint;
    .restart local v2    # "fromAndTo":Lcom/mapabc/mapapi/Route$FromAndTo;
    .restart local v3    # "routes":Ljava/util/List;, "Ljava/util/List<Lcom/mapabc/mapapi/Route;>;"
    .restart local v4    # "to":Lcom/mapabc/mapapi/GeoPoint;
    :cond_0
    iget-object v5, p0, Lrexsee/location/RexseeMapAbc$3;->this$0:Lrexsee/location/RexseeMapAbc;

    # getter for: Lrexsee/location/RexseeMapAbc;->mRequestedRoute:Ljava/util/HashMap;
    invoke-static {v5}, Lrexsee/location/RexseeMapAbc;->access$8(Lrexsee/location/RexseeMapAbc;)Ljava/util/HashMap;

    move-result-object v5

    iget-object v6, p0, Lrexsee/location/RexseeMapAbc$3;->val$id:Ljava/lang/String;

    invoke-virtual {v5, v6, v3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 514
    iget-object v5, p0, Lrexsee/location/RexseeMapAbc$3;->this$0:Lrexsee/location/RexseeMapAbc;

    # getter for: Lrexsee/location/RexseeMapAbc;->mBrowser:Lrexsee/core/browser/Browser;
    invoke-static {v5}, Lrexsee/location/RexseeMapAbc;->access$4(Lrexsee/location/RexseeMapAbc;)Lrexsee/core/browser/Browser;

    move-result-object v5

    iget-object v5, v5, Lrexsee/core/browser/Browser;->eventList:Lrexsee/core/browser/clazz/EventList;

    const-string v6, "onRouteReady"

    const/4 v7, 0x1

    new-array v7, v7, [Ljava/lang/String;

    const/4 v8, 0x0

    iget-object v9, p0, Lrexsee/location/RexseeMapAbc$3;->val$id:Ljava/lang/String;

    aput-object v9, v7, v8

    invoke-virtual {v5, v6, v7}, Lrexsee/core/browser/clazz/EventList;->run(Ljava/lang/String;[Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 515
    .end local v1    # "from":Lcom/mapabc/mapapi/GeoPoint;
    .end local v2    # "fromAndTo":Lcom/mapabc/mapapi/Route$FromAndTo;
    .end local v3    # "routes":Ljava/util/List;, "Ljava/util/List<Lcom/mapabc/mapapi/Route;>;"
    .end local v4    # "to":Lcom/mapabc/mapapi/GeoPoint;
    :catch_0
    move-exception v5

    move-object v0, v5

    .line 516
    .local v0, "e":Ljava/lang/Exception;
    iget-object v5, p0, Lrexsee/location/RexseeMapAbc$3;->this$0:Lrexsee/location/RexseeMapAbc;

    # getter for: Lrexsee/location/RexseeMapAbc;->mBrowser:Lrexsee/core/browser/Browser;
    invoke-static {v5}, Lrexsee/location/RexseeMapAbc;->access$4(Lrexsee/location/RexseeMapAbc;)Lrexsee/core/browser/Browser;

    move-result-object v5

    iget-object v6, p0, Lrexsee/location/RexseeMapAbc$3;->this$0:Lrexsee/location/RexseeMapAbc;

    invoke-virtual {v6}, Lrexsee/location/RexseeMapAbc;->getInterfaceName()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6, v0}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/Exception;)V

    goto :goto_0
.end method
